﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RssFeedLinkEditor.aspx.cs"
    Inherits="SiteWorx_WebParts_Advanced_RssFeedLink_RssFeedLinkEditor" Theme="Admin" StylesheetTheme="Admin" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Rss Feed Link Editor</title>

    <script type="text/javascript">
        //A function that will return a reference to the parent radWindow in case the page is loaded in a RadWindow object
        function getRadWindow() {
            var oWindow = null;
            if (window.radWindow) oWindow = window.radWindow;
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
            return oWindow;
        }
    </script>

</head>
<body>
    <form id="frmRssFeedLinkEditor" runat="server">
    <telerik:RadStyleSheetManager ID="rssRssFeedLinkEditor" runat="server">
    </telerik:RadStyleSheetManager>
    <telerik:RadScriptManager ID="rsmRssFeedLinkEditor" runat="server" EnableTheming="True">
    </telerik:RadScriptManager>
    <telerik:RadFormDecorator ID="rfdRssFeedLinkEditor" runat="server" Skin="Telerik"
        DecoratedControls="CheckBoxes, RadioButtons" />
    <div>
        <telerik:RadAjaxPanel runat="server" ID="rapnlRssFeedLinkEditor" HorizontalAlign="NotSet"
            LoadingPanelID="ralRssFeedLinkEditor">
            <table border="0">
                <tr>
                    <td>
                        <fieldset>
                            <legend>Rss Feed Link Web Part Properties</legend>
                            <table border="0" width="540" class="form">
                                <tr>
                                    <td>
                                        *RSS Channel Name:<br />
                                        <asp:TextBox runat="server" ID="txtChannelName" Width="250px"></asp:TextBox>&nbsp;<asp:RequiredFieldValidator ID="rfvChannelName" runat="server" ErrorMessage="Channel name is required."
                                                    ControlToValidate="txtChannelName"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        *RSS Url:<br />
                                        <asp:TextBox runat="server" ID="txtNavigateUrl" Width="250px"></asp:TextBox>&nbsp;<asp:RequiredFieldValidator ID="rfvNavigateUrl" runat="server" ErrorMessage="Rss url is required."
                                                    ControlToValidate="txtNavigateUrl"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Target:<br />
                                        <asp:DropDownList runat="server" ID="lstTarget">
                                            <asp:ListItem Text="None" Value=""></asp:ListItem>
                                            <asp:ListItem Text="Same Window" Value="_self"></asp:ListItem>
                                            <asp:ListItem Text="New Window" Value="_blank"></asp:ListItem>
                                            <asp:ListItem Text="Parent Window" Value="_parent"></asp:ListItem>
                                            <asp:ListItem Text="Browser Window" Value="_top"></asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Link Text:<br />
                                        <asp:TextBox runat="server" ID="txtLinkText" Width="210px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Hover Text:<br />
                                        <asp:TextBox runat="server" ID="txtHoverText" Width="210px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:CheckBox runat="server" ID="chkDisplayImage" Text="Display Rss Image" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Horizontal Align:<br />
                                        <asp:DropDownList runat="server" ID="lstHorizonalAlign">
                                            <asp:ListItem Text="Left" Value="1"></asp:ListItem>
                                            <asp:ListItem Text="Center" Value="2"></asp:ListItem>
                                            <asp:ListItem Text="Right" Value="3"></asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:CheckBox runat="server" ID="chkVisible" Text="Visible" />
                                    </td>
                                </tr>
                            </table>
                        </fieldset>
                    </td>
                </tr>
            </table>
            <br />
            <asp:Button runat="server" ID="btnFinish" Text="Finish" CommandName="Update" OnClick="btnFinish_Click" />&nbsp;<asp:Button
                runat="server" ID="btnCancel" Text="Cancel" CausesValidation="False" CommandName="Cancel"
                OnClick="btnCancel_Click" />
        </telerik:RadAjaxPanel>
        <telerik:RadAjaxLoadingPanel ID="ralRssFeedLinkEditor" runat="server" Height="75px"
            Width="75px" Style="position: relative; top: -50%; left: 45%;" IsSticky="true">
            <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>'
                style="border: 0px;" />
        </telerik:RadAjaxLoadingPanel>
    </div>
    </form>
</body>
</html>
